package com.beluga.core.wechat;

public enum WeChatApiType {

    /**
     * 沙箱环境
     */
    SAND_BOX("/sandboxnew"),

    /**
     * 生成预支付交易单
     */
    UNIFIED_ORDER("/pay/unifiedorder"),

    /**
     * 查询订单
     */
    WXORDER_QUERY("/pay/orderquery"),

    /**
     * 关闭订单
     */
    WXCLOSE_ORDER("/pay/closeorder"),

    /**
     * 申请退款
     */
    WXREFUND("/secapi/pay/refund"),

    /**
     * 退款查询
     */
    REFUND_QUERY("/pay/refundquery"),
    ;


    /**
     * 类型
     */
    private final String type;

    WeChatApiType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    @Override
    public String toString() {
        return type;
    }

}
